package com.xxadmin.usercenter.vo.request;

import com.xxadmin.common.validate.ValidGroup1;
import com.xxadmin.common.validate.ValidGroup2;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class ChannelDetailVO{

    @NotBlank(message = "渠道编码不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String channelCode;

    @NotBlank(message = "渠道名称不能为空",groups = {ValidGroup1.class,ValidGroup2.class})
    private String channelName;

    private String channelDesc;

    @NotNull(message = "编号 ID 不能为空",groups = ValidGroup2.class)
    private Integer id;

    @NotBlank(message = "状态不能为空",groups = ValidGroup2.class)
    private String status;
}
